typealias Bar = "foo"|*"bar"

bar: Bar

bar2: *Bar|"baz"

baz: Bar|*"baz"

b: *("a"|*"b")|"c"

c: ("a"|*"b")|*"c"

class Foo { name: String = "foo" }
class Baz { name: String = "baz" }

d: *Foo | Baz
e: *Foo | Baz = new {}
f: Foo | *Baz
g: Foo | *Baz = new {}
